package com.auxgroup.smarthome.enterprise.vo;

import com.auxgroup.smarthome.enterpriseapi.responsebody.DeviceSurvey;

/**
 * Created by kevinchen on 2017/3/12.
 */
public class DevicesOverviewVo {
    /**今日激活设备台数*/
    private int todayActivationCount;
    /**昨日激活设备台数*/
    private int yesterdayActivationCount;

    /**今日设备活跃台数*/
    private int todayActiveCount;
    /**昨日设备活跃台数*/
    private int yesterdayActiveCount;

    /**设备总数(这里的设备总数是该产品所有设备的总数么？)*/
    private int totalCount;
    /**设备在线台数（ 是今日在线数 ？）*/
    private int onlineCount;
    /**故障设备总台数（ 是今日故障设备台数 ？）**/
    private int faultDeviceCount;

    public int getTodayActivationCount() {
        return todayActivationCount;
    }

    public void setTodayActivationCount(int todayActivationCount) {
        this.todayActivationCount = todayActivationCount;
    }


    public int getTodayActiveCount() {
        return todayActiveCount;
    }

    public void setTodayActiveCount(int todayActiveCount) {
        this.todayActiveCount = todayActiveCount;
    }

    public int getYesterdayActivationCount() {
        return yesterdayActivationCount;
    }

    public void setYesterdayActivationCount(int yesterdayActivationCount) {
        this.yesterdayActivationCount = yesterdayActivationCount;
    }

    public int getYesterdayActiveCount() {
        return yesterdayActiveCount;
    }

    public void setYesterdayActiveCount(int yesterdayActiveCount) {
        this.yesterdayActiveCount = yesterdayActiveCount;
    }

    public int getTotalCount() {
        return totalCount;
    }

    public void setTotalCount(int totalCount) {
        this.totalCount = totalCount;
    }

    public int getOnlineCount() {
        return onlineCount;
    }

    public void setOnlineCount(int onlineCount) {
        this.onlineCount = onlineCount;
    }

    public int getFaultDeviceCount() {
        return faultDeviceCount;
    }

    public void setFaultDeviceCount(int faultDeviceCount) {
        this.faultDeviceCount = faultDeviceCount;
    }

    public DevicesOverviewVo() {
    }

    public DevicesOverviewVo (DeviceSurvey deviceSurvey){
        this.totalCount = deviceSurvey.getTotal();
        this.onlineCount = deviceSurvey.getOnline();
        this.todayActivationCount = deviceSurvey.getNewX().getToday();
        this.yesterdayActivationCount = deviceSurvey.getNewX().getYesterday();
        this.todayActiveCount = deviceSurvey.getActive().getToday();
        this.yesterdayActiveCount = deviceSurvey.getActive().getYesterday();
    }
}
